package com.example.demo.bean;


public class ThisSystemException extends RuntimeException {

    public Integer code ;
    public String message ;

    public ThisSystemException(String message, int code) {
        super(message);
        this.code = code ;
        this.message = message ;
    }

    public ThisSystemException(String message, Throwable cause) {
        super(message, cause);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
